<?php
include(dirname(__FILE__).'/../bootstrap/unit.php');
 
new sfDatabaseManager(ProjectConfiguration::getApplicationConfiguration('modulo2', 'test', true));
$loader = new sfPropelData();
$loader->loadData(sfConfig::get('sf_data_dir').'/fixtures');


$t = new lime_test(1, new lime_output_color());
 
// begin testing your model class
$t->diag('->retrieveByUsername()');
$user = EdocivilPeer::retrieveByPK('soltero');
$t->diag('->getNombre()');
$t->is($user->getNombre(), 'soltero', '->getNombre() returns el nombre del edo');